Skip to content

fix(tool): trigger fallback on empty task output#29048

Open
niStee wants to merge 1 commit into
anomalyco:devfrom
niStee:fix/trigger-fallback-on-empty-task-output
Open

fix(tool): trigger fallback on empty task output#29048
niStee wants to merge 1 commit into
anomalyco:devfrom
niStee:fix/trigger-fallback-on-empty-task-output

Conversation

@niStee
Copy link
Copy Markdown

@niStee niStee commented May 23, 2026

Issue for this PR

Closes #29054

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When a task completes with no text output (e.g., model was rate-limited or returned an empty response), the TaskTool now throws a descriptive error instead of silently returning an empty string. This ensures that downstream consumers (like the fallback system) can properly detect the failure and retry with the next configured model.

How did you verify your code works?

Tested locally by simulating an empty output response from a task and verifying that the fallback chain correctly intercepted the failure and retried with the next model.

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels May 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@niStee niStee force-pushed the fix/trigger-fallback-on-empty-task-output branch from 431f76b to 723f91c Compare May 24, 2026 01:35
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Empty task output breaks fallback system

1 participant